package org.budo.cmbc.sdk.entity;

import java.io.Serializable;

import org.budo.xml.XmlObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author lmw
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class DtlInfo implements Serializable {
    private static final long serialVersionUID = 2508728728642493253L;

    private String svrId;

    private String acntNo;

    private String type;

    private String actDate;

    private String intrDate;

    private String chequeNum;

    private String amount;

    private String opAcntNo;

    private String opAcntName;

    private String opBankName;

    private String opAreaCode;

    private String explain;

    private String balance;

    private String recseq;

    private String timestamp;

    public DtlInfo(XmlObject xml) {
        this.setSvrId(xml.getChildNodeTextContentByName("svrId"));
        this.setAcntNo(xml.getChildNodeTextContentByName("acntNo"));
        this.setType(xml.getChildNodeTextContentByName("type"));
        this.setActDate(xml.getChildNodeTextContentByName("actDate"));
        this.setIntrDate(xml.getChildNodeTextContentByName("intrDate"));
        this.setChequeNum(xml.getChildNodeTextContentByName("chequeNum"));
        this.setAmount(xml.getChildNodeTextContentByName("amount"));
        this.setOpAcntNo(xml.getChildNodeTextContentByName("opAcntNo"));
        this.setOpAcntName(xml.getChildNodeTextContentByName("opAcntName"));
        this.setOpBankName(xml.getChildNodeTextContentByName("opBankName"));
        this.setOpAreaCode(xml.getChildNodeTextContentByName("opAreaCode"));
        this.setExplain(xml.getChildNodeTextContentByName("explain"));
        this.setBalance(xml.getChildNodeTextContentByName("balance"));
        this.setRecseq(xml.getChildNodeTextContentByName("recseq"));
        this.setTimestamp(xml.getChildNodeTextContentByName("timestamp"));
    }
}